package homework6;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class DoubleBall {

	public static void main(String[] args) {
		List list = new ArrayList();
		for (int i = 0; i < 6; i++) {
			int red = (int) (Math.random() * (33 - 1 + 1) + 1);
			if (list.contains(red)) {
				i--;
				continue;
			}
			list.add(red);
		}
		Collections.sort(list);
		int blue = (int) (Math.random() * 16 + 1);
		list.add(blue);
		for (Object i : list) {
			System.out.print(i + " ");
		}
	}
}
